//
//  IM_FileModel.m
//  NewBleDemo
//
//  Created by cjg on 2019/9/17.
//  Copyright © 2019 cjg. All rights reserved.
//

#import "IM_FileModel.h"

@implementation IM_FileModel

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:_name forKey:@"name"];
    [aCoder encodeObject:_changeTime forKey:@"changeTime"];
    [aCoder encodeInt:_size forKey:@"size"];
    [aCoder encodeInt:_nameLength forKey:@"nameLength"];
}

- (id)initWithCoder:(NSCoder *)aDecoder {
    if ([self init]) {
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.changeTime = [aDecoder decodeObjectForKey:@"changeTime"];
        self.size = [aDecoder decodeIntForKey:@"size"];
        self.nameLength = [aDecoder decodeIntForKey:@"nameLength"];
    }
    return self;
}

@end
